<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  targetNamespace="Examples">
  
  <process id="uelExpressions" isExecutable="true">
  
    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="exclusiveGw" />
    
    <exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" />
    <sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="standardService">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${order.price <= 250}]]>
      </conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="premiumService">
      <conditionExpression xsi:type="tFormalExpression">
        <![CDATA[${order.isPremiumOrder()}]]>
      </conditionExpression>
    </sequenceFlow>
    
    <userTask id="standardService" name="Standard service" />
    <sequenceFlow id="flow4" sourceRef="standardService" targetRef="end1" />
    <endEvent id="end1" />
    
    <userTask id="premiumService" name="Premium service"/>
    <sequenceFlow id="flow5" sourceRef="premiumService" targetRef="end2" />
    <endEvent id="end2" />
    
  </process>

</definitions>